package com.ride.webservice.impl;

import javax.jws.WebParam;
import javax.jws.WebService;

import com.ride.webservice.UserWebService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * {@inheritDoc}
 */
@WebService(serviceName = "UserWebService", targetNamespace = "http://ride.webservices.com",
        endpointInterface = "com.ride.webservice.UserWebService", portName = "UserServicePort")
public class UserWebServiceImpl implements UserWebService {

    @Autowired
    com.ride.service.UserService userService;

    @Override
    public boolean createUser(@WebParam(name = "username") String username, @WebParam(name = "password") String password,
                              @WebParam(name = "mobilePhone") String mobilePhone, @WebParam(name = "email") String email) {
        userService.createUser(username, password, mobilePhone, email);
        return true;
    }
}
